load("@fbcode_macros//build_defs:native_rules.bzl", "alias")
load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library")
load("@fbsource//tools/build_defs:glob_defs.bzl", "glob")

oncall("buck2")

rust_library(
    name = "buck2_protoc_dev",
    srcs = glob(["src/**/*.rs"]),
    rustc_flags = [
        "--cfg=buck2_build",
    ],
    deps = [
        "fbsource//third-party/rust:tonic-build",
    ],
)

alias(
    name = "prevent_reindeer_from_gc",
    actual = "fbsource//third-party/rust:protoc-bin-vendored",
)
